﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
	<!-- Resource dictionary entries should be defined here. -->
	<ControlTemplate x:Key="EstiloNormal" TargetType="{x:Type TextBox}">
		<ControlTemplate.Resources>
			<Storyboard x:Key="TimelineGotFocus">
				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.BitmapEffect).(OuterGlowBitmapEffect.Opacity)">
					<SplineDoubleKeyFrame KeyTime="00:00:00.1990000" Value="1"/>
				</DoubleAnimationUsingKeyFrames>
			</Storyboard>
			<Storyboard x:Key="TimelineLostFocus">
				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.BitmapEffect).(OuterGlowBitmapEffect.Opacity)">
					<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
					<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>
				</DoubleAnimationUsingKeyFrames>
			</Storyboard>
		</ControlTemplate.Resources>
		<Border x:Name="border" Width="Auto" Height="Auto" BorderBrush="#FFFFFFFF" BorderThickness="0,0,0,0" CornerRadius="11,11,11,11" Background="#FFFFFFFF">
			<Border.BitmapEffect>
				<OuterGlowBitmapEffect GlowColor="#FF00C4FF" Opacity="0"/>
			</Border.BitmapEffect>
			<ScrollViewer Margin="10,0,10,0" x:Name="PART_ContentHost" VerticalAlignment="Center" Width="Auto" Height="Auto"/>
		</Border>
		<ControlTemplate.Triggers>
			<Trigger Property="IsFocused" Value="True">
				<Trigger.EnterActions>
					<BeginStoryboard Storyboard="{StaticResource TimelineGotFocus}"/>
				</Trigger.EnterActions>
				<Trigger.ExitActions>
					<BeginStoryboard x:Name="TimelineLostFocus_BeginStoryboard" Storyboard="{StaticResource TimelineLostFocus}"/>
				</Trigger.ExitActions>
			</Trigger>
		</ControlTemplate.Triggers>
	</ControlTemplate>
	
	
	<ControlTemplate x:Key="EstiloClave" TargetType="{x:Type PasswordBox}">
		<ControlTemplate.Resources>
			<Storyboard x:Key="TimelineGotFocus">
				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.BitmapEffect).(OuterGlowBitmapEffect.Opacity)">
					<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/>
				</DoubleAnimationUsingKeyFrames>
			</Storyboard>
			<Storyboard x:Key="TimelineLostFocus">
				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.BitmapEffect).(OuterGlowBitmapEffect.Opacity)">
					<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
					<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
				</DoubleAnimationUsingKeyFrames>
			</Storyboard>
		</ControlTemplate.Resources>
		<Border x:Name="border" Width="Auto" Height="Auto" BorderBrush="#FFFFFFFF" BorderThickness="0,0,0,0" CornerRadius="11,11,11,11" Background="#FFFFFFFF">
			<Border.BitmapEffect>
				<OuterGlowBitmapEffect GlowColor="#FF00C4FF" Opacity="0"/>
			</Border.BitmapEffect>
			<ScrollViewer Margin="10,0,10,0" x:Name="PART_ContentHost" VerticalAlignment="Center" Width="Auto" Height="Auto"/>
		</Border>
		<ControlTemplate.Triggers>
			<Trigger Property="IsFocused" Value="True">
				<Trigger.EnterActions>
					<BeginStoryboard Storyboard="{StaticResource TimelineGotFocus}"/>
				</Trigger.EnterActions>
				<Trigger.ExitActions>
					<BeginStoryboard x:Name="TimelineLostFocus_BeginStoryboard" Storyboard="{StaticResource TimelineLostFocus}"/>
				</Trigger.ExitActions>
			</Trigger>
		</ControlTemplate.Triggers>
	</ControlTemplate>
</ResourceDictionary>